<div class="navbar navbar-fixed-top">
	
	<div class="navbar-inner">
		
		<div class="container">
			
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			
			<a class="brand" href="/index">
				在线测试  	
			</a>		
			
			<div class="nav-collapse">
				{% if currentPage is defined %}
					{% if currentPage == "signup" %}
					<ul class="nav pull-right">
						<li class="">						
							<a href="/login" class="">
								已经有账号？ 现在登陆
							</a>
						</li>
					</ul>
					{% elseif currentPage == "login" %}
					<ul class="nav pull-right">
						
						<li class="">						
							<a href="/signup" class="">
								没有账号？
							</a>
							
						</li>
						
					</ul>
					{% elseif currentPage == "index" %}
					<ul class="nav pull-right">

						<li class="">						
							<a href="/login" class="">
								登陆
							</a>
							
						</li>
						<li class="">						
							<a href="/signup" class="">
								注册
							</a>
							
						</li>
						
					</ul>
					{% elseif currentPage == "answer" 
						or currentPage == "index/auth"
						or currentPage == "index/reports"
						or currentPage == "answer/closed"
						or currentPage == "answer/early"%}
					<ul class="nav pull-right">
						{% if  currentPage == "answer" %}
						<li class="">						
							<a class="">
								<i class="icon-time"></i>
								<span id="clock"></span>
							</a>
						</li>
						{% endif %}
						<li class="">						
							<a class="">
								<i class="icon-user"></i>
								欢迎，{{ username }}
							</a>
						</li>
						<li class="dropdown">						
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<i class="icon-cog"></i> 
								个人账号
								<b class="caret"></b>
							</a>
							
							<ul class="dropdown-menu">
								<li><a href="javascript:;">个人资料</a></li>
								<li><a href="/logout">登出</a></li>
							</ul>						
						</li>
					</ul>
					{% elseif currentPage == "admin" %}
					<ul class="nav pull-right">
						<li class="">						
							<a href="#" class="">
								欢迎，管理员
							</a>
							
						</li>
						<li class="dropdown">						
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<i class="icon-user"></i> 
								个人账号
								<b class="caret"></b>
							</a>
							
							<ul class="dropdown-menu">
								<li><a href="javascript:;">个人资料</a></li>
								<li><a href="/logout">登出</a></li>
							</ul>						
						</li>
					</ul>
					{% endif %}
				{% endif %}
				
			</div><!--/.nav-collapse -->	
	
		</div> <!-- /container -->
		
	</div> <!-- /navbar-inner -->
	
</div> <!-- /navbar -->